The WebForms.php class has been updated from version 1.6 to version 2.0.
This class is now compatible with the WebFormsJS version 2.0 and supports new features of the WebForms Core technology.
The WebForms.php class is built from the WebForms.cs parent class in the C# programming language. The class conversion was done by DeepSeek artificial intelligence and with final monitoring and testing by Elanat.
This WebForms.php version 2.0 class includes the following important changes compared to version 1.6:
Key changes:
- New data structure: use of simple string and "\n" instead of the NameValueCollection class
- Performance improvements: add and update methods using strings directly
- A namespace called WebFormsCore has been added.
The usage method is the same as the previous version but with much more features
Important note:
Methods that were overloaded in C# (such as `SetGetEvent` with a different signature) have been renamed to different names in PHP because PHP does not support overloading in the C# way.
Also, a small part of the methods have been renamed due to conflicts with reserved words and standards.
Example:
- include → includeText
- break → breakIt
- goTo → goToLine
- goTo → goToIndex
All these changes have been made to ensure:
1. No conflict with PHP keywords
2. Compliance with PHP naming standards (camelCase)
3. Avoid ambiguity in method names
4. Compatibility with PHP language limitations
WebForms.php is available in the following repository: